<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    let computer = {
      size: '15.6寸',
      brand: '华为',
      playGame: function() {
        console.log('吃鸡')
      },
      code: function() {
        console.log('写代码使我快乐')
      }
    }
    console.log(computer['size'])
    console.log(computer['brand'])
    computer.playGame()
    computer.code()
    
  </script>
</body>
</html>